import request from '@/utils/request';

export async function queryCustomer(params) {
  return request('/api/cstCustomers/selectByPage', {
    params,
  });
}
export async function removeCustomer(params) {
  return request(`/api/cstCustomers/delete/${params.custId}`, {
    method: 'POST',
    data: {  },
  });
}
export async function addCustomer(params) {
  return request('/api/cstCustomers/add', {
    method: 'POST',
    data: { ...params },
  });
}
export async function updateCustomer(params) {
  return request('/api/cstCustomers/edit', {
    method: 'POST',
    data: { ...params },
  });
}

export async function enable(params) {
  return request('/api/cstCustomers/enable', {
    method: 'POST',
    data: { ...params },
  });
}

export async function disable(params) {
  return request('/api/cstCustomers/disable', {
    method: 'POST',
    data: { ...params },
  });
}
